<template>
  <lay-container>
    <lay-form :model="model" ref="layFormRef" class="MainForm" >       
     
      


      
<lay-form-item label="名称" prop="name" >
<lay-input v-model="model.name" disabled></lay-input>
</lay-form-item>

<lay-form-item label="类型" prop="lx" >
<lay-input v-model="model.lx" disabled></lay-input>
</lay-form-item>

<lay-form-item label="排序号" prop="sortno" >
<lay-input v-model="model.sortno" disabled></lay-input>
</lay-form-item>

<lay-form-item label="备注" prop="memo" >
<lay-textarea v-model="model.memo" disabled></lay-textarea>
</lay-form-item>




    </lay-form>    

  </lay-container>

    
</template>

<script lang="ts">
import { ref, watch,reactive,onMounted,h } from 'vue'
import { layer } from '@layui/layer-vue'
import MyHttp from "../../library/MyHttp";  
import MyWin from "../../library/MyWin"; 
import MyPage from "../../library/MyPage"; 
import {MyExcel} from "../../library/MyExcel"; 
import {MySimpleExport,TableColumn} from "../../library/MySimpleExport"; 
import MyData from '../../library/MyData';

import {useUserStore} from "../../store/user";  
import MyAuth from "../../library/MyAuth";  




export default {
  props:{
      data:Object 
  },
  methods:{
     setData:(data:any)=>{
        console.info("setData")
     }
   },
 setup(prop:any, context:any) {
  const baseUrl="/htsql";
  const myWin=ref<any>(null);
  const model = ref<any>( {} );
  const layFormRef = ref<any>()     
  const detail=async (row:any)=>{
    let qm1={
         id:row.id
      }
      var r=await new MyHttp().post(baseUrl+"/detail",qm1,
        { 
        }
      );  
      model.value=r.data;
  }
  onMounted(() =>{  
     detail(prop.data);
  });
  const setData=(row:any)=>{
    detail(row);
  }
  return {
    model,
    setData
  }
}
}
</script>
